package com.zfzs.post.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author wq
 * @date 2019/9/26 11:10
 * @description
 */
@Data
public class MerchantReportDTO {

    @NotBlank(message = "请输入商户姓名")
    private String merchantName;

    @NotBlank(message = "请输入商户手机号码")
    @Pattern(regexp = "^1(2|3|4|5|6|7|8|9)\\d{9}$",message = "手机号码格式不正确")
    private String phone;

    @NotBlank(message = "请填写sn")
    private String sn;

    @NotNull(message = "请输入机具类型")
    private Integer terminalTypeId;

}
